var instrumentResult = Gikam.getPageObject({

    getEditListColumns: function () {
        return [{
            checkbox: true
        }, {
            field: 'sourceIp',
            title: 'T_INSTRUMENT_RESULT.SOURCEIP'
        }, {
            field: 'sourcePort',
            title: 'T_INSTRUMENT_RESULT.SOURCEPORT'
        }, {
            field: 'port',
            title: 'T_INSTRUMENT_RESULT.PORT'
        }, {
            field: 'portName',
            title: 'T_INSTRUMENT_RESULT.PORTNAME'
        }, {
            field: 'messageTime',
            title: 'T_INSTRUMENT_RESULT.MESSAGETIME'
        }, {
            field: 'createdTime',
            title: 'T_INSTRUMENT_RESULT.CREATEDTIME',
            type: 'dateTime'
        }, {
            field: 'sampleId',
            title: 'T_INSTRUMENT_RESULT.SAMPLEID'
        }, {
            field: 'productCode',
            title: 'T_INSTRUMENT_RESULT.PRODUCTCODE'
        }, {
            field: 'productName',
            title: 'T_INSTRUMENT_RESULT.PRODUCTNAME'
        }, {
            field: 'result',
            title: 'T_INSTRUMENT_RESULT.RESULT'
        }, {
            field: 'resultType',
            title: 'T_INSTRUMENT_RESULT.RESULTTYPE'
        }, {
            field: 'resultUnit',
            title: 'T_INSTRUMENT_RESULT.RESULTUNIT'
        }, {
            field: 'message',
            title: 'T_INSTRUMENT_RESULT.MESSAGE',
            type: 'textarea'
        }];
    },

    getBaseInfoFormFields: function () {
        return [{
            field: 'sourceIp',
            title: 'T_INSTRUMENT_RESULT.SOURCEIP',
            validators: ['strLength[0,12]']
        }, {
            field: 'sourcePort',
            title: 'T_INSTRUMENT_RESULT.SOURCEPORT',
            validators: ['strLength[0,3]']
        }, {
            field: 'port',
            title: 'T_INSTRUMENT_RESULT.PORT',
            validators: ['strLength[0,3]']
        }, {
            field: 'portName',
            title: 'T_INSTRUMENT_RESULT.PORTNAME',
            validators: ['strLength[0,24]']
        }, {
            field: 'messageTime',
            title: 'T_INSTRUMENT_RESULT.MESSAGETIME',
            validators: ['strLength[0,12]']
        }, {
            field: 'sampleId',
            title: 'T_INSTRUMENT_RESULT.SAMPLEID',
            validators: ['strLength[0,12]']
        }, {
            field: 'productCode',
            title: 'T_INSTRUMENT_RESULT.PRODUCTCODE',
            validators: ['strLength[0,12]']
        }, {
            field: 'productName',
            title: 'T_INSTRUMENT_RESULT.PRODUCTNAME',
            validators: ['strLength[0,24]']
        }, {
            field: 'result',
            title: 'T_INSTRUMENT_RESULT.RESULT',
            validators: ['strLength[0,24]']
        }, {
            field: 'resultType',
            title: 'T_INSTRUMENT_RESULT.RESULTTYPE',
            validators: ['strLength[0,12]']
        }, {
            field: 'resultUnit',
            title: 'T_INSTRUMENT_RESULT.RESULTUNIT',
            validators: ['strLength[0,12]']
        }, {
            field: 'message',
            title: 'T_INSTRUMENT_RESULT.MESSAGE',
            validators: ['strLength[0,333]']
        }];
    },

    getSearchListColumns: function () {
        return [{
            checkbox: true
        }, Gikam.status.getBpmnColumn(instrumentResult.workflow.dbTable), {
            field: 'sourceIp',
            title: 'T_INSTRUMENT_RESULT.SOURCEIP'
        }, {
            field: 'sourcePort',
            title: 'T_INSTRUMENT_RESULT.SOURCEPORT'
        }, {
            field: 'port',
            title: 'T_INSTRUMENT_RESULT.PORT'
        }, {
            field: 'portName',
            title: 'T_INSTRUMENT_RESULT.PORTNAME'
        }, {
            field: 'messageTime',
            title: 'T_INSTRUMENT_RESULT.MESSAGETIME'
        }, {
            field: 'sampleId',
            title: 'T_INSTRUMENT_RESULT.SAMPLEID'
        }, {
            field: 'productCode',
            title: 'T_INSTRUMENT_RESULT.PRODUCTCODE'
        }, {
            field: 'productName',
            title: 'T_INSTRUMENT_RESULT.PRODUCTNAME'
        }, {
            field: 'result',
            title: 'T_INSTRUMENT_RESULT.RESULT'
        }, {
            field: 'resultType',
            title: 'T_INSTRUMENT_RESULT.RESULTTYPE'
        }, {
            field: 'resultUnit',
            title: 'T_INSTRUMENT_RESULT.RESULTUNIT'
        }, {
            field: 'message',
            title: 'T_INSTRUMENT_RESULT.MESSAGE'
        }];
    },

    getChooseListColumns: function () {
        return [{
            field: 'sourceIp',
            title: 'T_INSTRUMENT_RESULT.SOURCEIP'
        }, {
            field: 'sourcePort',
            title: 'T_INSTRUMENT_RESULT.SOURCEPORT'
        }, {
            field: 'port',
            title: 'T_INSTRUMENT_RESULT.PORT'
        }, {
            field: 'portName',
            title: 'T_INSTRUMENT_RESULT.PORTNAME'
        }, {
            field: 'messageTime',
            title: 'T_INSTRUMENT_RESULT.MESSAGETIME'
        }, {
            field: 'sampleId',
            title: 'T_INSTRUMENT_RESULT.SAMPLEID'
        }, {
            field: 'productCode',
            title: 'T_INSTRUMENT_RESULT.PRODUCTCODE'
        }, {
            field: 'productName',
            title: 'T_INSTRUMENT_RESULT.PRODUCTNAME'
        }, {
            field: 'result',
            title: 'T_INSTRUMENT_RESULT.RESULT'
        }, {
            field: 'resultType',
            title: 'T_INSTRUMENT_RESULT.RESULTTYPE'
        }, {
            field: 'resultUnit',
            title: 'T_INSTRUMENT_RESULT.RESULTUNIT'
        }, {
            field: 'message',
            title: 'T_INSTRUMENT_RESULT.MESSAGE'
        }];
    },

    baseUrl: IFM_CONTEXT + '/secure/basemodule/basedata/results'
});
